<?php

function inc()
{
  static $a = 1;
  echo $a;
  $a++;
}

inc();
inc();
inc();
inc();
inc();
